import 'package:fish_redux/fish_redux.dart';

enum MineAction {
  action,
  onLogout,
  onClass,
  onProfile,
  onAbout,
  onPay,
  onMessage,
  onFeedback,
  onAvatar,
  refresh,
}

class MineActionCreator {
  static Action onAction() {
    return const Action(MineAction.action);
  }

  static Action onLogout() {
    return const Action(MineAction.onLogout);
  }

  static Action onProfile() {
    return const Action(MineAction.onProfile);
  }

  static Action onAbout() {
    return const Action(MineAction.onAbout);
  }

  static Action onPay() {
    return const Action(MineAction.onPay);
  }

  static Action onClass() {
    return const Action(MineAction.onClass);
  }

  static Action onMessage() {
    return const Action(MineAction.onMessage);
  }

  static Action onFeedback() {
    return const Action(MineAction.onFeedback);
  }

  static Action onAvatar() {
    return const Action(MineAction.onAvatar);
  }

  static Action refresh() {
    return Action(MineAction.refresh);
  }
}
